<template>
  <div>
    <p @click="$router.go(-1)" >点击返回</p>
    <p>位置在：{{info.desc}}</p>
    <p>价格为：{{info.price}}元/月</p>
    <p>希望您能喜欢</p>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  name: 'content',
  data(){
  return {
    info : null
  }
  },
  async created() {
    const  index = this.$route.query.index
     const { data } = await axios({
      url: ' http://liufusong.top:8080/houses' ,
    })
    this.info = data.body.list[index]
    console.log(this.info);
  },
}
</script>

<style scoped lang="less"></style>
